<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        a = 10;
        b = 3;
        c = "9"
        //算术运算符：
        console.log("加法运算符：", a + b)
        console.log("减法运算符：", a - b)
        console.log("乘法运算符：", a * b)
        console.log("除法运算符：", a / b)
        console.log("余数运算符：", a % b)
        // 比较运算符：
        console.log("大于：", a > b)
        console.log("小于：", a < b)
        console.log("大于等于：", a >= b)
        console.log("小于等于：", a <= b)
        console.log("等于：", a == b)
        console.log("不等于：", a!= b)
        console.log("严格等于：", a === b)
        console.log("严格不等于：", a!== b)
        // 赋值运算符：
        console.log("赋值运算符：", a = b)
        console.log("加等于运算符：", a += b)
        console.log("减等于运算符：", a -= b)
        console.log("乘等于运算符：", a *= b)
        console.log("除等于运算符：", a /= b)
        console.log("余等于运算符：", a %= b)
        // 逻辑运算符与短路运算：
        console.log("逻辑与运算符：", a==0 && b==3)
        console.log("逻辑或运算符：", a==0 || b==10)
        console.log("逻辑非运算符：", !a)
    </script>
</body>
</html>